Mention profiles in --help pages
authorAlex Crichton <alex@alexcrichton.com>
Wed, 14 Jan 2015 03:54:55 +0000 (19:54 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 16 Jan 2015 04:09:23 +0000 (20:09 -0800)
Closes #999

src/bin/bench.rs
src/bin/build.rs
src/bin/test.rs

index 56df9e294b32e5bf8fad506711823714c5b9cec6..f8bf15ab90159ccb7d8c1e1d11f67855311229d6 100644 (file)
@@ -45,6 +45,8 @@ If the --package argument is given, then SPEC is a package id specification
 which indicates which package should be benchmarked. If it is not given, then
 the current package is benchmarked. For more information on SPEC and its format,
 see the `cargo help pkgid` command.
+
+Compilation can be customized with the `bench` profile in the manifest.
 ";
 
 pub fn execute(options: Options, shell: &mut MultiShell) -> CliResult<Option<()>> {
index 61e92d611e1269cc8d8f830b02c7c3de14c706e7..ec1c02e8573de23cdcc2f5196e9965a886564bb6 100644 (file)
@@ -41,6 +41,10 @@ If the --package argument is given, then SPEC is a package id specification
 which indicates which package should be built. If it is not given, then the
 current package is built. For more information on SPEC and its format, see the
 `cargo help pkgid` command.
+
+Compilation can be configured via the use of profiles which are configured in
+the manifest. The default profile for this command is `dev`, but passing the
+--release flag will use the `release` profile instead.
 ";
 
 pub fn execute(options: Options, shell: &mut MultiShell) -> CliResult<Option<()>> {
index 48a7db6c7432006ea489cff88f7f29c87e3ff6f5..a723210fd4e5b34292d4e24540732fd3b9694cfb 100644 (file)
@@ -47,6 +47,8 @@ If the --package argument is given, then SPEC is a package id specification
 which indicates which package should be tested. If it is not given, then the
 current package is tested. For more information on SPEC and its format, see the
 `cargo help pkgid` command.
+
+Compilation can be configured via the `test` profile in the manifest.
 ";
 
 pub fn execute(options: Options, shell: &mut MultiShell) -> CliResult<Option<()>> {